package com.bdth.mixapi.api.controller.index;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bdth.mixapi.api.entity.Area;
import com.bdth.mixapi.api.service.AreaService;
import com.bdth.mixapi.api.vo.CommonList;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LGP
 * @since 2019-04-11
 */
@Api("参数-地区分类")
@RestController
@RequestMapping("/index")
public class AreaController {

    @Autowired
    AreaService areaService;

    @ApiOperation(value="获取地区分类列表信息", notes="提示")
    @RequestMapping(value = "area/list", method = RequestMethod.GET)
    public CommonList<Area> list(){
        return CommonList.success(areaService.listAll());
    }
}

